package net.cattaka.teamredwhite.web;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;

import net.cattaka.teamredwhite.HTTPServer;

import org.apache.http.HttpServerConnection;

import android.content.Context;

public abstract class AbstractContent implements HTTPServer.HTTPHandler {
	private Context context;
	
	public AbstractContent(Context context) {
		this.context = context;
	}
	
	abstract public void handle(String path, Map<String, String> params, InputStream in, OutputStream out) throws IOException;

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}
}
